/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SessionBeans.web.beans;
import entities.File;
import entities.FileChangeLog;
import entities.Rights;

/**
 *
 * @author Tomas
 */
public class FileInfo {
    
    protected File value;
    protected Rights rights;
    protected OwnerUser owner;
    protected Long size;
    protected FileChangeLog changeLog;

    public FileInfo(File value, Rights rights, OwnerUser owner, Long size, FileChangeLog changeLog) {
        this.value = value;
        this.rights = rights;
        this.owner = owner;
        this.size = size;
        this.changeLog = changeLog;
    }
    
    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public File getValue() {
        return value;
    }

    public void setValue(File value) {
        this.value = value;
    }

    public FileChangeLog getChangeLog() {
        return changeLog;
    }

    public void setChangeLog(FileChangeLog changeLog) {
        this.changeLog = changeLog;
    }
    
    public int getRightsLevel(){
        return rights.getTypeCode();
    }

    public Rights getRights() {
        return rights;
    }

    public void setRights(Rights rights) {
        this.rights = rights;
    }

    public OwnerUser getOwner() {
        return owner;
    }

    public void setOwner(OwnerUser owner) {
        this.owner = owner;
    }
    
    
}
